@import '../../../res/theme/xxhz.scss';

.appointmentCalendar {
  position: static !important;
  display: initial !important;

  .main {
    width: 100% !important;
    margin-top: 20px;
    padding-bottom: 20px;

    .head {
      padding-top: 20px !important;
      padding-bottom: 6px !important;
    }
  }
}

.calendarRoot {
  position: fixed;
  background-color: rgba(0, 0, 0, 0.6);
  width: 100%;
  height: 100%;
  z-index: 9999;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;

  .main {
    background-color: white;
    width: 90vw;
    border-radius: 10px;
    overflow: hidden;

    .title-box {
      position: relative;

      .close-box {
        position: absolute;
        right: 30px;
        top: 16px;
      }

      .title {
        padding: 20px 0 0;
        text-align: center;
        font-size: 26px;
        color: #666666;
      }
    }

    .head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      line-height: 40px;
      box-sizing: border-box;
      padding: 30px 30px;

      .btn {
        font-size: 24px;
        background: #f8f8f8;
        border: solid 1Px #efefef;
        border-radius: 10px;
        padding: 5px 20px;
      }

      .title {
        font-size: 30px;
      }
    }

    .week {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      font-size: 24px;
      text-align: center;

      .week-item {
        line-height: 50px;
        font-size: 20px;
        color: rgb(116, 117, 117);
      }
    }

    .day-box {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      overflow: hidden;

      .day-item {
        min-height: 120px;
        background-color: white;
        font-size: 18px;
        box-sizing: border-box;
        padding: 18px 4px 10px;
        line-height: 1;
        position: relative;

        .calendar-header {
          width: 100%;
          position: absolute;
          display: flex;
          margin-top: -10px;
          justify-content: center;

          .holidays {
            margin-top: -2px;
            color: #ed5565;
            min-width: 24px;
          }
        }

        .work-days {
          color: #ddd !important;
          background-color: #919096 !important;
        }

        .rest-work {
          border-radius: 6px;
          color: #fff;
          background-color: #f1792b;
          font-size: 16px;
          margin-top: -2px;
          display: flex;
          align-items: center;
          justify-content: center;
          padding: 0 2px;
        }

        .day {
          margin-top: 15px;
          text-align: center;
          padding-bottom: 10px;
        }

        .text {
          text-align: center;
          padding-top: 6px;
        }

        .info-text {
          font-size: 16px;
        }

        .error {
          color: red;
        }
      }

      .invalid {
        opacity: 0.5;
      }

      .single {
        background-color: $color-brand;
        color: white;
        border-radius: 8px;

        .day {
          color: white;
        }
      }

      .end {
        background-color: $color-brand;
        color: white;
        border-radius: 15px;
        position: relative;

        .day {
          color: white;
        }
      }

      .start {
        background-color: $color-brand;
        color: white;
        border-radius: 15px;
        position: relative;

        .day {
          color: white;
        }
      }

      .range {
        border-radius: 15px;
        background-color: #ffc45e;
        color: white;

        .day {
          color: white;
        }
      }
    }

  }

  .submit {
    position: fixed;
    bottom: 5vh;
    width: 50%;
    left: 25%;
    background-color: $color-brand;
    color: white;
    text-align: center;
    line-height: 80px;
    border-radius: 40px;
    font-size: 30px;
  }
}

.start-s {
  border-radius: 8px;
  background-color: $mainColor !important;
  color: white;
  position: relative;

  .day {
    color: white;
  }
}

.start-s::after {
  content: '';
  position: absolute;
  display: block;
  right: -19px;
  text-align: center;
  color: white;
  width: 41px;
  z-index: 9;
  top: -17px;
  padding: 16px 5px 5px;
  transform: scale(0.6) rotateZ(45deg) translateY(0px);
}

.end-e {
  background-color: $mainColor !important;
  color: white;
  border-radius: 8px;
  position: relative;

  .day {
    color: white;
  }
}

.end-e::after {
  content: '';
  position: absolute;
  display: block;
  right: -19px;
  text-align: center;
  color: white;
  width: 41px;
  z-index: 9;
  top: -17px;
  padding: 16px 5px 5px;
  transform: scale(0.6) rotateZ(45deg) translateY(0px);
}
